- entry_type: ghost_instrumentation
  metadata:
    format_version: "2.0"
    uuid: de8353b0-18d1-4ff5-a925-a06880b598f8
    creation_time: 2025-05-28T12:16:56Z
    producer:
      name: Goblint
      version: heads/master-0-gb8fb60e5d-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''protection-read'' ''--set'' ''ana.autotune.activated[-]''
        ''octagon'' ''--sets'' ''ana.specification'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/properties/unreach-call.prp''
        ''--sets'' ''exp.architecture'' ''32bit'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i: 051706a1eb405a384d7cf371ab2d9b9605b94715fa3ad16d6c2eb8e3fbb8fc38
      data_model: ILP32
      language: C
      specification: CHECK( init(main()), LTL(G ! call(reach_error())) )
  content:
    ghost_variables:
    - name: m_locked
      scope: global
      type: int
      initial:
        value: "0"
        format: c_expression
    - name: multithreaded
      scope: global
      type: int
      initial:
        value: "0"
        format: c_expression
    ghost_updates:
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 913
        column: 3
        function: main
      updates:
      - variable: multithreaded
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 898
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 893
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 898
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 893
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 898
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 895
        column: 7
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 893
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 883
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 879
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 883
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 879
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 883
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 881
        column: 7
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 879
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
- entry_type: invariant_set
  metadata:
    format_version: "2.0"
    uuid: f96c4c7a-90c4-41b5-b062-d8d6e13c3147
    creation_time: 2025-05-28T12:16:56Z
    producer:
      name: Goblint
      version: heads/master-0-gb8fb60e5d-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''protection-read'' ''--set'' ''ana.autotune.activated[-]''
        ''octagon'' ''--sets'' ''ana.specification'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/properties/unreach-call.prp''
        ''--sets'' ''exp.architecture'' ''32bit'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i: 051706a1eb405a384d7cf371ab2d9b9605b94715fa3ad16d6c2eb8e3fbb8fc38
      data_model: ILP32
      language: C
      specification: CHECK( init(main()), LTL(G ! call(reach_error())) )
  content:
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 914
        column: 3
        function: main
      value: '! multithreaded || (flag == 0 || flag == 1)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 915
        column: 3
        function: main
      value: '! multithreaded || (flag == 0 || flag == 1)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 914
        column: 3
        function: main
      value: '! multithreaded || ((total & 0UL) == 0UL && (~ total & 0UL) == 0UL)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 915
        column: 3
        function: main
      value: '! multithreaded || ((total & 0UL) == 0UL && (~ total & 0UL) == 0UL)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 914
        column: 3
        function: main
      value: '! multithreaded || (0 <= num && num <= 1)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-deagle/arithmetic_prog_bad.i
        line: 915
        column: 3
        function: main
      value: '! multithreaded || (0 <= num && num <= 1)'
      format: c_expression
